<?php
namespace service\index;


use cache\Redis;

class listAction
{
    /**
     * @desc 列表页
     * @author zhaozhiwei
     * @date 2021-02-07 14:03
     */
    public static function main($params)
    {
        $user_id=1;
//        var_dump($params);die;
        $wave=new \TC\Cache\Wave();
        $info=$wave->waveGet('user_info:'.$user_id,function() use ($user_id){
            return \UserModel::getUserInfoById($user_id);
        },5);

        return \TC\IO\Output::rpcSuccess($info);
    }
}
